package com.ant.storage.mapper;

import com.ant.storage.pojo.BusinessEnter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BusinessEnterMapper extends BaseMapper<BusinessEnter>{

    /**
     * 业务入库中间表插入
     * @param business_enter_id 业务入库id
     * @param commodityId 商品id
     * @param business_enter_number 入库数量
     * @param id 仓库id
     */
    void addBusinessEnterCommodity(Integer business_enter_id, Integer commodityId, Integer business_enter_number, Integer id);
    //模糊查询业务入库单
    List<BusinessEnter> queryBusinessEnter(Integer page, Integer limit, @Param("map") Map map);
    //模糊查询统计
    Integer countQueryBusinessEnter(@Param("map") Map map);

}
